package com.qf.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.qf.mapper.StudentMapper;
import com.qf.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MyJob2 implements SimpleJob {


    @Override
    public void execute(ShardingContext shardingContext) {
        int count = shardingContext.getShardingTotalCount();
        int item = shardingContext.getShardingItem();

        System.out.println("=========================");
    }
}
